package com.sun.springboot_mq.hello.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**对列配置
 * @author shkstart
 * @create 2021-10-24 17:40
 */
@Configuration
public class RabbitConfig {
    @Bean
    public Queue Queue() {
        return new Queue("hello");
    }
    @Bean
    public Queue Queue1() {
        return new Queue("object");
    }
}
